package com.tanhan.mindapp.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tanhan.mindapp.dao.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("sys_post")
@Schema(description = "系统岗位实体类")
public class SysPost extends BaseEntity {
    private static final long serialVersionUID = 1L;

    // 岗位编码
    @TableField("post_code")
    @Schema(description = "岗位编码", example = "PM")
    private String postCode;

    // 岗位名称
    @TableField("post_name")
    @Schema(description = "岗位名称", example = "项目经理")
    private String postName;

    // 显示顺序
    @TableField("post_sort")
    @Schema(description = "显示顺序", example = "1")
    private Integer postSort;

    // 岗位状态（0正常 1停用）
    @TableField("status")
    @Schema(description = "岗位状态", example = "0", allowableValues = {"0", "1"})
    private String status;
}
